﻿using mozhi.smarterp.Finance.Enums;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Finance.Finances
{
    public class EndPeriodProcessResultDto : EntityDto<Guid>
    {
        public Guid ItemId { set; get; }

        public string ItemName { set; get; }

        public int Period { set; get; }

        public Guid? JournalId { set; get; }

        public string JournalNumber { set; get; }

        public bool JournalApproved { set; get; }

        /// <summary>
        /// 是否需要处理
        /// </summary>
        public bool NeedProcess { set; get; }

        public bool NeedEdit { set; get; }

        public decimal? MeasureValue { set; get; }

        public EndPeriodProcessType Type { set; get; }

        /// <summary>
        /// 是否完成
        /// </summary>
        public bool Finshed { set; get; }

        public List<EndPeriodProcessResultItemDto> Items { set; get; }
    }

    public class EndPeriodProcessResultItemDto : EntityDto<Guid> 
    {
        public Guid ResultId { set; get; }

        public string Name { set; get; }

        public string Value { set; get; }

        public string ValueType { set; get; }

        public int Index { private set; get; }

        public bool NeedEdit { private set; get; }
    }

}
